import request from '@/utils/request'

// 查询策略生成器列表
export function listFactorCategory(query) {
  return request({
    url: '/system/factorCategory/list',
    method: 'get',
    params: query
  })
}

// 查询因子列表
export function listFactorItem(query) {
  return request({
    url: '/system/factorCategory/listFactorItem',
    method: 'get',
    params: query
  })
}

// 查询策略生成器详细
export function getFactorCategory(factorCategoryId) {
  return request({
    url: '/system/factorCategory/' + factorCategoryId,
    method: 'get'
  })
}

// 新增策略生成器
export function addFactorCategory(data) {
  return request({
    url: '/system/factorCategory',
    method: 'post',
    data: data
  })
}

// 修改策略生成器
export function updateFactorCategory(data) {
  return request({
    url: '/system/factorCategory',
    method: 'put',
    data: data
  })
}

// 删除策略生成器
export function delFactorCategory(factorCategoryId) {
  return request({
    url: '/system/factorCategory/' + factorCategoryId,
    method: 'delete'
  })
}
